﻿namespace ChatSystem.Services.Models
{
    public class PubnubController
    {
        private static readonly PubnubAPI pubnub = new PubnubAPI(
            "pub-c-ef422a89-0b6b-49cf-884b-4c6d375f9c2b",               // PUBLISH_KEY
            "sub-c-ba5be398-057e-11e3-991c-02ee2ddab7fe",               // SUBSCRIBE_KEY
            "sec-c-OGMyZDI0YTMtYTQyMi00YjYxLWFhNTgtZTllNTczMTM3NjY1",   // SECRET_KEY
            true);

        public static void Push(string channel, string jsonObject) 
        {
            pubnub.Publish(channel, jsonObject);
        }
    }
}